<!DOCTYPE html>
<html lang="en">
    <head>
        {include file="public/header" /}
    </head>
    <body>
        {include file="public/nav" /}
        <div class="container">
            <div class="col-lg-12">
                <div class="panel panel-default">
                    <div class="panel-heading">
                        <i class="fa fa-user"></i> 提示
                    </div>
                    <div class="panel-body">
                        <h2>恭喜你注册成功</h2>
                        <p>请进入你的注册邮箱，复制验证地址，验证成功后即可成为会员</p>
                        <p><a href="#" target="_blank" class="mail" data-id="{$email}">进入邮箱</a>
                    </div>
                </div>
            </div>
            <div class="col-lg-4">
            </div>
        </div>
        {include file="public/footer" /}
        <script type="text/javascript">
         ;(function(){
             var hash={ 
                 'qq.com': 'https://mail.qq.com', 
                 'gmail.com': 'https://mail.google.com', 
                 'sina.com': 'https://mail.sina.com.cn', 
                 '163.com': 'https://mail.163.com', 
                 '126.com': 'https://mail.126.com', 
                 'yeah.net': 'https://www.yeah.net/', 
                 'sohu.com': 'https://mail.sohu.com/', 
                 'tom.com': 'https://mail.tom.com/', 
                 'sogou.com': 'https://mail.sogou.com/', 
                 '139.com': 'https://mail.10086.cn/', 
                 'hotmail.com': 'https://www.hotmail.com', 
                 'live.com': 'https://login.live.com/', 
                 'live.cn': 'https://login.live.cn/', 
                 'live.com.cn': 'https://login.live.com.cn', 
                 '189.com': 'https://webmail16.189.cn/webmail/', 
                 'yahoo.com.cn': 'https://mail.cn.yahoo.com/', 
                 'yahoo.cn': 'https://mail.cn.yahoo.com/', 
                 'eyou.com': 'https://www.eyou.com/', 
                 '21cn.com': 'https://mail.21cn.com/', 
                 '188.com': 'https://www.188.com/', 
                 'foxmail.coom': 'https://www.foxmail.com' 
             };

             $(function(){ 
                 $(".mail").each(function() { 
                     var url = $(this).data('id').split('@')[1]; 
                     for (var j in hash){ 
                         $(this).attr("href", hash[url]); 
                     } 
                 }); 
             }) 

         }());
        </script> 
    </body>
</html>
